<?php
class Outputter
{
    public static $game = "1";
    public $nogame = "2";

    public function __construct()
    {
        echo "get class";
    }
    public function Findme()
    {
        echo "找到我了吗？";
    }
}
interface game
{

}
class Outputter_children extends Outputter implements game
{

}
$name = "Outputter";
    //input  atttributes for class
print_r(get_class_vars($name));
    //check to class Having fathe
$name2 = "Outputter_children";
echo "<br>";
print_r(get_parent_class($name2));
echo "<br>";

//you use the same String and Object
if (is_subclass_of($name2, $name)) {
    echo "yes <br>";
}

//now i want to check it ,who it is the interface
$name_interface = "game";
if (is_callable(array($name_interface, class_implements($name2)))) {
    echo "game cool that is true";
}
if (in_array('game', class_implements($name2))) {
    echo "game cool that is true";
}
?>